<header class="header">
	<a class="btn btn_ht btn_z" href="#!/me">
		<span class="z"></span><span class="y">返回</span>
	</a>
	<h2 class="title">我的社区</h2>
</header>
	
<div class="wrapper" style="bottom: 0;">
	<nav class="my_sub_nav">
		<ul>
			<li class="<% if(channel == 'receive'){ %>cur<% } %>">
				<a href="#!/me/bbs/receive">
					回复提醒
				</a>
			</li>
			<li class="<% if(channel == 'send'){ %>cur<% } %>">
				<a href="#!/me/bbs/send">
					我的帖子
				</a>
			</li>
			<li class="<% if(channel == 'collect'){ %>cur<% } %>">
				<a href="#!/me/bbs/collect">
					喜 欢
				</a>
			</li>
		</ul>
	</nav>

	<div id="myBbs_list_<%= channel%>" class="myBbs_list">
		<div class="scorller">
			<% if(page >= 2){ %>
			<div class="load_prev"> 加载上一页 </div> 
			<% } %>
			<ul>
				<% _.each(items, function(item, index){ %>
				<% if(channel == 'receive'){ %>
				<li class="cf">
					<div class="left">
						<a href="" class="avatar">
							<img src="<%= item.fromusericon %>" alt="avatar">	
						</a>
					</div>
					<div class="cnt">
						<div class="base">
							<p class="title"><span class="author"><%= item.fromusername %></span></p>
							<span class="reply"><img src="./img/reply.png" alt=""></span>
						</div>
						<div class="summary"><%= item.message %></div>
						<p class="origin">
							回复我的帖子：<a class="subject" href="#!/bbs/<%= item.id %>"><%= item.subject %></a>
						</p>
						<p class="extra">
							<span class="date"><%= item.dateline %></span>
						</p>
					</div>
				</li>
				<% } else if(channel == 'send') { %>
				<li class="cf">
					<div class="left">
						<a href="" class="avatar">
							<img src="<%= item.fromusericon %>" alt="avatar">	
						</a>
					</div>
					<div class="cnt">
						<div class="base">
							<p class="title"><span class="subject"><%= item.subject %></span></p>
							<span class="reply"><img src="./img/reply.png" alt=""></span>
						</div>
						<div class="summary"><%= item.message %></div>
					
						<p class="extra">
							<span class="date"><%= item.dateline %></span>
						</p>
					</div>
				</li>
				<% } else { %>
				<li class="cf">
					<div class="left">
						<a href="" class="avatar">
							<img src="<%= item.authoricon %>" alt="avatar">	
						</a>
					</div>
					<div class="cnt">
						<div class="base">
							<p class="title"><span class="subject"><%= item.subject %></span></p>
							<span class="reply"><img src="./img/reply.png" alt=""></span>
						</div>
						<div class="summary"><%= item.message %></div>
					
						<p class="extra">
							<span class="date"><%= item.dateline %></span>
						</p>
					</div>
				</li>
				<% } %>
				<% }) %>
			</ul>
			<% if(page != pages){ %>
			<div class="load_next"> 加载下一页 </div>
			<% } %>
		</div>
	</div>
</div>